﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true" CodeBehind="Poll.aspx.cs" Inherits="ESCHOOL.admin.WebForm25" Title="Polling" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            width: 82%;
        }
        .style4
        {
            width: 176px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <br />
    </p>
    <table style="width:100%">
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                Question</td>
            <td>
                <asp:TextBox ID="tbques" runat="server" Width="300px"></asp:TextBox>
                <br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbques" ErrorMessage="fill it"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Choose No of option</td>
            <td>
                <asp:RadioButtonList ID="rbchoice" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="rbchoice_SelectedIndexChanged" Height="16px" 
                    RepeatDirection="Horizontal" Width="149px">
                    <asp:ListItem Value="Three">3</asp:ListItem>
                    <asp:ListItem Value="Four">4</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lboption" runat="server" Text="Options"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="tb1" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                <asp:TextBox ID="tb2" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                <asp:TextBox ID="tb3" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                <asp:TextBox ID="tb4" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                <asp:Button ID="btnadd" runat="server" onclick="btnadd_Click" Text="Add Poll" />
            </td>
        </tr>
    </table>
    <p>
        &nbsp;</p>
    <p>
    </p>
</asp:Content>
